
import React from "react"
import user from "./pages/user"
import login from "./pages/login"
import register from "./pages/register"

import {
    BrowserRouter,
    Switch,
    Route
} from 'react-router-dom';

class Router extends React.Component{
  render(){
    return (
        <div>
             <BrowserRouter>
                    < Switch >
                        <Route path="/login" component={login}></Route>
                        <Route path="/register" component={register}></Route>
                        <Route path="/" component={user}></Route>
                    </Switch >
                </BrowserRouter>
        </div>
  );
  }
  
}

export default Router;
